package sh.wnxy.wn38.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import sh.wnxy.wn38.entity.Order;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wn38
 * @since 2021-07-15
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    @Select("select * from `order` where order_userid = #{uid}  and is_delete=0")
    List<Order> listByuid(String uid);
    @Select("select order_userid from `order` where order_id = #{orderid}")
    String selectuid(String orderid);
}
